package com.yanliang.io;

import java.io.InputStream;

/**
 * 获取配置文件流
 *
 * @Author : yanliang
 * @Data : 3/25/2020 3:11 PM
 */
public class Resources {


    /**
     * 根据配置的文件路径，将配置文件加载成字节输入流，存储在内存中
     * @param
     * @return
     * @exception/throws
     */
    public static InputStream getResourceAsSteam(String path) {
        InputStream resourceAsStream = Resources.class.getClassLoader().getResourceAsStream(path);
        return resourceAsStream;
    }
}
